package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("crm_company")
@EqualsAndHashCode(callSuper=true)
public class SysCompany  extends Model<SysCompany> implements Serializable {


    private static final long serialVersionUID = -5886012896705137070L;
    @TableId(value="id",type= IdType.ASSIGN_ID)  //雪花算法  id生成策略
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    private String companyname;
    private String people;
    private String phone;
    private String email;
    private String address;
    @TableField(value="industry_id")
    private String industryId;
    @TableField(value="create_time")
    private Date createTime;
    private Boolean enabled;
    private String icon;
    private String information;
}
